Edit functions and sidebar