fixed the crash

a view should be assigned inside onCreate