Cleaned some of the php templates