bug fixes: get classes from the current tab