updated index to handle action