Added auto layout support
Added auto layout support