My buttons don't get enhanced when having JQuery UI script

My buttons don't get enhanced when having JQuery UI script

Hi,
I hope someone can  help me.
I am moving an application to the JQuery Mobile framework and I am having a problem with the buttons, they don't get enhanced by JQuery Mobile, I discovered that having the JQuery UI script file referenced in my program interferes with JQuery mobile enhancement, it seems like JQuery UI takes precedence.
I use UI for dialog boxes and I would like to keep it that way, I moved the UI script before the JQuery Mobile script and the buttons now look but the dialog boxes don't display properly.

Any solution anyone can provide will be really appreciated.