refactor code. extract show form function. create consent message view and logic