fixed indentation
updated register view