changed edit from get to post