add ability to set pre and post event functions, in order to avoid messy overrides
make stylesheet path relative
add some dummy post_event functions. Center tooltips. get rid of list declaration