refactor divs show/hide status