added a limit of one configuration and also modified the close functionality