Reimplement Main adapter by using loader.
Small fix for layout inflating - parent null bug
http://www.doubleencore.com/2013/05/layout-inflation-as-intended/