Extracted onOptionsSelected to a abstract class