Added functionality to record class to trigger a callback each time it receives an action from the browser