alter LocationPage constructor