Page transition helper functions for single page apps