add orders functionality