splitting gui functions to dedicated files depending on their use