prevents actions being handled twice