changing the layout of candidates