adding functionality where display option dialog is controlled via
angular