Move all view function to it's own namespace