New method for calling with a callback for unmount