Fixed the jquery ui bootstrap links and reduced duplication