Close public functions on view