working json except page wont refresh on submit. WILL FIX