Changed hiding components to be in css rather than JavaScript.