DepMsgView refactor + code style improvements