fix more layout issues and removed js sidebar math