changed backend from PHP to rails