use props instead of state for Title attributes => fix outdated title bug