cleanup, note that apple's cordinate system is different than the normal css style