converted buttons into rails