Move showing of item into the try block