wrote UI for arrangement mode