Code refactoring. Added option elem, that let user put context notice in some element instead body of page