adding collapse/expand button

pull request from temi