fix some bugs

external links open in new tab, edit actually edits entry doesn't create
a new one, each controller has separate folder for images.