page refferer, many fixes