popup change direction button layout