Fix functionality. Add details dialog