Refactor CSS for general panel. Add functioning right panel.