general refactor, popup plugin added and item's detail functionality included