apply psr-2 rules.
add Dispatch stack.for dispatching controller.