core modal functionality working (from jQuery UI)