Moved logic from view to controller. Added admin landing redirect helper.