added icons and animation to switch between views