change to using ajax on collections