orders functionality fixed