Updated bounce so that it works for pinned tabs as well