passed f_treat_render() andf_treat_event() functions in private in c_popup_manger and created f_treat() to call __f_treat_render() and __f_treat_event, add a bool __v_close in c_popup class to close him when pressed 'q'