upgraded modal events to bootstrap 3