minimal fixes

Fix on teacher dashboard and select the correct menu item while
scrolling on main page.
fix user orders on the database
functionality fix, users that already exist must be updated