view refreshes on edit and add incorporates values from input fields