added edit functionallity