fixed an issue where the hide button didn't work in landscape mode