Impletented Edit and New buttons