Edit functionality foundation.