Added functionality to stories flyout

Clicking outside the flyout now closes it.