prepared merging layout.c and tag.c into screen.c