added some hooks
Merge pull request #823 from piotr-szczygiel/changes-in-categories

added some hooks