added deletePost directive on click