update lockfile
move view logic to controller