fixed bug with showing last itemDetails dialog