beautify code
support route
deprecate the sidebar directive,it looks pretty now