adding layout for xib and programatically