update index and show in post controller