restart

commented code, added function choosing view template by view status