added cool preview function for frontpage