adding animation and notification on submit