fixed most errors in controller, added sessions, made minor changes to v...

...iew to test controller