Fix function declaration
Move layout from Controller to WebModule