edit layout for view events