Fixed multiple button issues
Misc fixes and paintBox rewrite