Adding switch button in single view to change between views