make showDialog helper function static so that we dont need an FXHelper object to call