added hiding/showing stages