Edit class button and dialog