added handling of switch down event