added headless gem to fix capybara x server not found issue and minor changes