fixed some bugs with labels and removed unneccesary import for jquery-ui