Edited functions to make sure home link available.