add/edit a period view fully done. Edit part now functional