removing previouse footer/header view while reassigning