refactor delete in micropost views