added new if statements to make profile modals viewable even if not logged in