Calling all methods from switch case