finally got some functionality on index pg