merge color and texture buttons
move error dialog to methods from class