remove extra empty lines in controller