added bottom panel code and css
added js code to allow panels with different size