fixed permalinks and added hide functionality