edit and view tamplate done