Designed the main activity