make first and second page work for everything except mobile