fixes #141

Bootstrap was included twice and so show dialog was toggled twice
layout fix in modal bootstrap dialog
Use local $ instead of global jQuery