a piece of code to help to edit different type of attribute (image, audio, date, bool, etc)