handle index categories selection