All logic for main page. TODO: delete favorite and around me