selected link inverted
moved category handling from category.php to header.php