Replacing Flexio::app() in views.