implement boxRight switch