Hide and Show conditional statements (actions) not working as expected