Using let for controller