Necessary functions for edit and application