implemented word detail view