Updated dialogue box to return updated value