on index show only public events, pay credits for register tickets function