Front page logic complete