refactor rework based on romanblancos suggestion
refactor rework based on romanblancos suggestion

ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic