Added cancel button to dialog
Fixed not loading bug
Fix ..use method in write context..