Updated code
Binded categories list, fixed bugs