modifications so it works with bootstrap-ui tabs