added error messages and worked on animating views