some small changes to controllers code formatting