put check logic in actionAvailable