Added plugins and code for tabs using rep and flexible