fix borders
newer firefox broke file upload, refactor. TODO: build js test for opera 10 to disable custom upload