Added detail modal and query for getting tags