moves the function to the data helper

just creates a routing function for the observer