Converted to single page angularjs view layer