used animation instead of class swap to hide preloaded widgets