improving view/ctrlr functionality