added showAdmin flag