events controller updated with invite friends logic