Coding in main page