fixing editing posts and thumbnails