make app a bacbkone router and add base view class