main page work