added Endnotes pop up and image resizing