move header footer to layout, modified gemfile and controllers