add edit function and view.
add show view.