fixed bugs hiding divs