use property constants and format code
only set subtiltle if it exists
check if activity is null