refactor sample works, start will_paginate, omni-auth