create pm in view (I like to code hard)