implemented pretty urls and single page app architecture.