add function open, save, save as