add gemfile. refactor index and default pages