Update CSS for the flexibile layout.
Implemented dynamic layouting for the sidebar.