change method in show posts