fix button and grid behavior with iPad