Fixes gui event when choosing paint tool
Remove the gui widget and use it as an external gui