remove hardcoded path variable in page controller