Add duration to events and remove unused css syle