Fixed the layout issue where only the image was in the sidebar, and added simple jquery to add an item to the table.