alerts and button refresh