updates view with dialogue box