Add setting table and fix buy feature