Added functionality to add new location and hide keyboard