removed cancel button from switch