added option to show and hide details