moved upload minutes link from hook_views_pre_view to hook_form_alter. hook_views_pre_view was throwing error.