fixed the_title filter endpoint appearing outside of loop
change templates