fixed various bugs and made a css class for drag and drop form reset