added functions to favorite a post