cleaned controller code and fixed route name