Moved set listener functions to fc.init