adding async loading on assets.

Also Fixed bugs on layout container