moved routing from Application to Router