Generate favorites controller