finishing up mvc with some errors to be debugged