deleted unused registerNibs