add upload pics func, edit and remove funcs