fix bug with the lifecycle
complete the functions when you create borad with xib