Moving layout related controllers to layout extension.