gets id from title