refactor window out of needles
added base routes