Working version of layouting and global variables