Removed dismissDialog method because code was never used or reached when running app