fix forms for Bootstrap 3; closes #841; closes #842