add upload progress bar
fix attachment upload bug

old attachment references on page were overwritten by the new one and where therefore inaccessible