parameterized the qrcodes controller so it will display qrcodes for other types of object