add animated transitions