Added functionality to homepage