added baselayout. fixed optimization bug. added directive for livetile.