implemented selecting categorys