add admin check with boolean var