added model to controller