Add single layout getting, fix some view bugs.