modal settings / jQuery help functions