Made it possible to initilize from nib