js added for alert clear when user clicks back button. Tested creation of rules