Retaining selected status even after submission