added publish page selecto func