fixed ipad issue with sidebar