bugfix - div was displayed even when div is false