smarten up ui file and ensure that there isn't a csd tag already on the page