changed the layout and functionality of the "control pannel". still need to debug map.js