Did some work on dialog fragment

Started working on the functionality of the save and cancel buttons on
the dialog fragment.