allowed for nil navbar
udpate to contentframe