Adjust template for better rendering with current bootstrap. Add an "uploaded" event.