add onclick event - still not lucky with the jumping windows