Cleaned up code for sidebar and CSS