Added size parameter to popup