modified partial view to be used by both new and edit page