change program logic
add updating template and redirect page render when doing updates