added validation and edit to the downtime pages