bugs in user action trigger php