created working system. Need to switch add and detail views with tableviews