Added search for amsid and css clean up