some firefox fixes
fix clear canvas behavior via buttons