refactor: adding flash messages on connections page, use same multidimensional array as flash messages