making controller
added routing/fixed typos