removed map from before action on staticpagescontroller