create function for ajax updating of action log