Add priority checking for categories and sticky button