list activites for each user and fix JavaScript delete method