put logic for github events in pages helper and removed it from views and ws backend