cleaning up php tags in template