Modified popup sizing and fixed deselecting of tabs in options