Custom modal dialog based on bootstrap modal plugin