added destroy method and render :index