Changing dialog box from element class to id