template improvements
basic php setup, template fixes