add functions on context displaying