Fix selection problems in Firefox, clean up backgrounds