added safe for category on admin page, querying database a lot for that