making getevents functionality more flexible so that it works with homepage, gatherings page and if group pages