Updated app for rails backend