lots of code clean up. restyled pages with sidebar.