init refactoring, view buttons conditional on auth