Move view and component variables to common header