Improving/simplifying UI code

GIF image load fixed on home page