Rewriting main page