add template
add pg gem
resolve assets compile issues
split template in header footer