fix gui recreating on orientation change

Signed-off-by: constpetrov <constant.petrov@gmail.com>