update popup btn functionality

untested