Implmented crud actions for pastes