resolve response encoding problems and add ajax for category imcoming