reset
event functionality and image upload