creating postView.js