updated place orders functionality