fixed numberous bugs, added tab monitor