working modal for posts