adding controller