adding get functionality to posts