refact ComponentCreator
add dialog cancel button