fixed layout structure & added some essential framwork