created function to refresh and print the sidebar

also added some sidebar styles