change edit function now admin and writer can change only