Updated tab action

Now there's a before and an after action for tabs