refactored main page
refatored main page