rewrote button link the rails way