re-orgaize tabs
fix detail template and add some inputs