Change namespace, add global functions for views