wrapping up todo view
added router functionality