act index and show page working