fix navigation bar and toolbar hidden issue