Added edit and destroy functionality