fixing error for active styling - register events