Added possibility to have popup opened by default