Restore button definition and flash message div in import_export view

Change method to only replace flash message div

Fixes #763