implemented basic frame layout