Adding events and css options of grid