Added animation for switch screens