favorite recipe moved to directive, additional code cleanup