Added error popup to function gui