Callback system for server responses implemented