created flag in session to check if new rating exists otherwise get list of friends from the session