Change app to work with server-side.