add/edit a period  view half done. Need edit part