[#71496782] Refactor

Moved admin? functionality from view to controller

Signed-off-by: Martha Berner <marthaberner.mb@gmail.com>