completed integrating php modles in categories page