removed useless button
added logic to display different info def