screen: move the tagging on screen change to Lua