Add mode in extension and mode folder