Adjust button behavior for mobile devices