add layout sidenav and update some useful function.
Merge pull request #22 from yuffiy/master

add layout sidenav and update some useful function.