Replaced jQuery UI dialog with custom Popup box