categories functionality added