added functionality to samples tab