Generate button and href url in view and clean up all data render functions.