fix hide/show nav functionality