added functions tools to push front or back an obj in a container
use function tools to push front or back
defined f_add_popup_err_msg() function to display a popup with an error message