Updated controller and jade file