fixed uploading bug of image and added post details view controller