added categories and made neccesarry changes to make the basic form for ads work