working in page controller for media register