hiding and showing ads/navigation based on keyboard