Added buttons and finished all functionality of the dialog except for
the refresh functionality.