added edit capabilities for posts