Improved UI bar behavior on mobile