add popup btn functionality

not fully implemented