prettify controllers code