Java fix and layout change

Fixed jquery mouseleave problem causing the bottom div to appear when
not wanted.