Corrected code to use my view instead of build in