app: foreground select tool add filan stage apply and some polish