Moved page logic to separate controller
Prevented double page rendering