Added initial pages creating and fixed some bugs with categories