Updated Code, added Edit & update functons & created partial form