Get the title from the attributes and update it on refresh