Add LFOpen and fix MainActivity