made values in popup size not hard coded