Correct ui hide/show functions
Experimental draw lag fix.