moved the binding of click event to the jquery object to inside init. otherwise there is a bug when when reseted(i unbinded it on selecting any menu in the previous commit)