removed unwantes spaces in controller