Setting states variables
Update Jquery
Setting alerts