add global log function
Functionality to add category in Categories screen