added a single view for both create and update actions