Finish FunctionsViewController