split functionality to two view controllers