adding dependencies to messages and views