I cont see all the script in your blueprint so its difficult to diagnose exactly where the issue is but i would start by making the two behaviors as two different events. So youll have one event called chase player and one named roam for instance. then you could have a branch with a variable can see player connected to the bool. so when can see player is set to true you would call the chase player event but if its set tto false then you would call the roam event. there are a million ways to set up this functionality and everyone has their own favorite. if you wanted to add more screenshots of your blueprint i could try to help modify what you have better.
Alternatively if you were so inclined you could make a system that uses behavior trees. AI LiveStream