Spaces for tabs and event triggering fixed