this should be refractored so that its a submit button so that it can do this on its own, shouldn't it?