finished edit func and made reset take input