Added animation when the view is clicked