handeling of fatel errors
clear code
show duration in infowindow for errors
error handling for adding new attachments