transitions when hiding and showing ui