removing unused code
handling double panel layout
handling triple panel layout
handling 4 panel layout