set main frame is enabled or not when user open the add frame