Fixed redirecting issue with ad/id and title/adtitle. Cleaned up the rest of the code where ever i found extra stuff.