Created controller and updated routes