method for PostViewModel