fixed the homepage image links and the behavior of the close button