Refactor plugin tab