Slightly refactored FBmodule. Moved event handler to appropriate file