implement pass & unpass & view status logic and template