replaced ngRoute with ui.router to be able to use query parameters, also made the web save state in the url (not nice but effective..)