abstracted left panel into layout