Bug fixes, better settings page

Fixed bug while trying to load settings page.
Fixed bug while trying to load note detail page.
New user settings.