added router to init app and handle urls