refactor oauth views