added missed files and set rating to event functionality