view layout and example redirect after login