move title assignment to model from controller