fixing permalinks and css paths