implemented a semi functional grid layout of events