added clearer error alert, and fixed same-state transition animation