#45 adding standalone state
#45 adding 'global' click event