added mechanics for popups on sidebar buttons