Move footer and header from Objective C to swift