Put jQuery in noconflict mode for Sync loading and fixed scripts and css references so that they only load on the required pages. Also check to see if the load_type is set for the setup screen