adding input dialog box function