check for dirty state on the client rather than the server