Add view and update logic for events