Change ui-states to alerts