only make buttons if jquery ui is loaded