move base view constructor to top