Added dialog as a member of component abstract method.