removed some useless alerts; added settimeout for animations