fixed controller so that the inex page works