Updated Edit dialog code for boostrap