added framework for dialogue box