cleaning up paint logic
fixed fucking secondary buttons, a Z priority issue.