run stuff in the main page