adding ifTop to indexHandler to guard match all