completely removed callbacks, but added show and hide events, see script in index.html