fixed some bugs with the sliding form