added router
start the history when the document is ready
create a router to start managng the states of the app
changing model structure to make filters
canging methods to filter the tasks