Current user API and main view