set pages index with devise sign in