refacfored the post group/category choosing