Added popup dialog box funcitonality